﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tuijiandwf.aspx.cs" Inherits="FineUI.Examples.form.tuijiandwf" %>
 
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
    <title></title>
    <link href="../res/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" runat="server" />
        <f:SimpleForm ID="SimpleForm1" Width="900px" runat="server" LabelWidth="160px" EnableCollapse="true"
            BodyPadding="5px" ShowBorder="True" ShowHeader="True" AjaxLoadingType="Mask"
            Title="输入成绩和条件">
            <Items>
            <f:Label ID="Label5" runat="server" Text="&nbsp;"/>
            <f:DropDownList runat="server" ID="ddlkelei" Label="科类">
                    <f:ListItem Text="文科" Value="文科" Selected="true" />
                    <f:ListItem Text="理科" Value="理科" />                   
                </f:DropDownList>
            <f:DropDownList runat="server" ID="ddlpici" Label="批次">
                    <f:ListItem Text="本科第一批录取院校" Value="本科第一批录取院校" Selected="true"/>
<f:ListItem Text="本科第二批录取院校" Value="本科第二批录取院校"/>
<f:ListItem Text="高职（专科）第一批录取院校" Value="高职（专科）第一批录取院校"/>
<f:ListItem Text="高职（专科）第二批录取院校" Value="高职（专科）第二批录取院校"/>
                 
                </f:DropDownList>
                <f:NumberBox Label="输入成绩" ID="txtcj" runat="server" MaxValue="750" MinValue="0"
                    NoDecimal="true" NoNegative="True" Required="True" EmptyText="比如 550" ShowRedStar="True" />
                     <f:Label ID="labResult" runat="server" ShowLabel="false"/>
          
                    <f:Button ID="btnConfirm" CssClass="marginr"  AjaxLoadingType="Mask" Text="确认输入" OnClick="btnConfirm_Click"
                    runat="server">
                    </f:Button>
                               
                
                <f:CheckBoxList ID="CheckBoxList1" Label="选择省份" ColumnNumber="5" runat="server">
                    <f:CheckItem Text="山东" Value="山东" />
<f:CheckItem Text="江苏" Value="江苏" />
<f:CheckItem Text="安徽" Value="安徽" />
<f:CheckItem Text="浙江" Value="浙江" />
<f:CheckItem Text="福建" Value="福建" />
<f:CheckItem Text="上海" Value="上海" />
<f:CheckItem Text="广东" Value="广东" />
<f:CheckItem Text="广西" Value="广西" />
<f:CheckItem Text="海南" Value="海南" />
<f:CheckItem Text="江西" Value="江西" />
<f:CheckItem Text="河南" Value="河南" />
<f:CheckItem Text="湖北" Value="湖北" />
<f:CheckItem Text="湖南" Value="湖南" />
<f:CheckItem Text="北京" Value="北京" />
<f:CheckItem Text="天津" Value="天津" />
<f:CheckItem Text="河北" Value="河北" />
<f:CheckItem Text="山西" Value="山西" />
<f:CheckItem Text="内蒙古" Value="内蒙古" />
<f:CheckItem Text="宁夏" Value="宁夏" />
<f:CheckItem Text="新疆" Value="新疆" />
<f:CheckItem Text="陕西" Value="陕西" />
<f:CheckItem Text="甘肃" Value="甘肃" />
<f:CheckItem Text="青海" Value="青海" />
<f:CheckItem Text="四川" Value="四川" Selected="true"/>
<f:CheckItem Text="云南" Value="云南" />
<f:CheckItem Text="贵州" Value="贵州" />
<f:CheckItem Text="西藏" Value="西藏" />
<f:CheckItem Text="重庆" Value="重庆" />
<f:CheckItem Text="辽宁" Value="辽宁" />
<f:CheckItem Text="吉林" Value="吉林" />
<f:CheckItem Text="黑龙江" Value="黑龙江" />
                </f:CheckBoxList>
                <f:Button ID="btnServerSetSelectedValue" CssClass="marginr"  AjaxLoadingType="Mask" Text="清除选择" OnClick="btnServerSetSelectedValue_Click"
                    runat="server">
                    </f:Button>
                    <f:Button ID="btnServerSetAllSelectedValue" CssClass="marginr"  AjaxLoadingType="Mask" Text="全部选择" OnClick="btnServerSetAllSelectedValue_Click"
                          runat="server">
                </f:Button>
                <%--<f:Button ID="btnServerGetSelectedValue" CssClass="marginr"  AjaxLoadingType="Default" Text="获取上面列表的选中项" OnClick="btnServerGetSelectedValue_Click"
                    runat="server">
                </f:Button>
                <f:Button ID="btnClientGetSelectedValue" Text="获取上面列表的选中项（JavaScript 脚本）" EnablePostBack="false"
                    OnClientClick="alertSelectedValue();" runat="server">
                </f:Button>--%>
                <f:Label ID="Label1" runat="server" Text="&nbsp;">
                </f:Label>
                <f:CheckBoxList ID="zydl" Label="专业大类" ColumnNumber="4" runat="server" AutoPostBack="true" OnSelectedIndexChanged="zydlAutoPostBack_SelectedIndexChanged">
                </f:CheckBoxList>
                <f:CheckBoxList ID="zyxl" Label="专业小类" ColumnNumber="4" runat="server">
                </f:CheckBoxList>
                
                <f:Button ID="zybtnclean" CssClass="marginr"  AjaxLoadingType="Mask" Text="清除选择" OnClick="btnServerSetSelectedValue_Click"
                    runat="server">
                </f:Button>
                <f:Button ID="zybtnall" CssClass="marginr"  AjaxLoadingType="Mask" Text="全部选择" OnClick="btnServerSetAllSelectedValue_Click"
                          runat="server">
                </f:Button>
                <f:Label ID="Label2" runat="server" Text="&nbsp;">
                </f:Label>
                
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
                    <Items>
                        <f:Button runat="server" ID="btnSubmit" ValidateForms="SimpleForm1" Text="给我推荐" AjaxLoadingType="Mask" 
                            OnClick="btnSubmit_Click">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:SimpleForm>
        <f:SimpleForm ID="SimpleForm2" Width="900px" runat="server" LabelWidth="160px" EnableCollapse="true"
            BodyPadding="5px" ShowBorder="True" ShowHeader="True"
            Title="志愿报告系统">
            <Items>
            <f:Grid ID="Grid1"  ShowBorder="true" ShowHeader="true" Title="推荐学校" Width="890px" runat="server" 
            DataKeyNames="学校代码">
            <Columns>
                <f:RowNumberField />
                <f:BoundField Width="70px" DataField="学校代码" HeaderText="学校代码" />
                <f:BoundField Width="200px" DataField="学校名称"  HeaderText="学校名称" />
                <f:BoundField Width="50px" DataField="省份" HeaderText="省份" />
                <f:BoundField Width="80px" DataField="实录等位分" HeaderText="实录等位14" />
                <f:BoundField Width="80px" DataField="实录等位分2" HeaderText="实录等位13" />
                <f:BoundField Width="80px" DataField="实录等位分3" HeaderText="实录等位12" />
                <f:BoundField Width="70px" DataField="招生代码" HeaderText="招生代码" />
                <f:BoundField Width="70px" DataField="计划合计" HeaderText="计划合计" />
                <f:BoundField Width="70px" DataField="上一年合计" HeaderText="上年计划" />
                <f:BoundField Width="70px" DataField="录取几率" HeaderText="录取几率" />
               
                
            </Columns>
        </f:Grid>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
                    <Items>
                        <f:Button runat="server" ID="btnExport" ValidateForms="SimpleForm2" Text="导出列表" AjaxLoadingType="Mask"  EnableAjax="false" DisableControlBeforePostBack="false"
                            OnClick="btnExport_Click">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            </f:SimpleForm>
    </form>
    <script type="text/javascript">

        function alertSelectedValue() {
            var list2 = F('<%= CheckBoxList1.ClientID %>');
            var selectedCheckboxs = list2.getValue(), selectedValues, i;

            if (Ext.Object.isEmpty(selectedCheckboxs)) {
                top.F.util.alert("列表一没有选中项！");
            } else {
                selectedValues = [];
                Ext.Object.each(selectedCheckboxs, function (key, value) {
                    selectedValues.push(value);
                });
                top.F.util.alert("列表一选中项的值：" + selectedValues.join(','));
            }
        }
 
    </script>
</body>
</html>